package com.hibase.upms.constant;

/**
 * redis缓存key定义常量类
 *
 * @author hufeng
 * @date 2019/09/17
 */
public class RedisCacheKeyConstant {

    private RedisCacheKeyConstant(){

    }

    /**
     * 防重复提交
     */
    public final static String NO_REPEAT_SUBMIT = "wms:no-repeat-submit";

    /**
     * 流水号前缀
     */
    public final static String CODE_SEQUENCE_KEY = "mds:code-sequence";

    /**
     * 流水号锁
     */
    public final static String LOCK_KEY = "mds:lock-code-sequence";

    // 序号当前值
    public final static String CUR_STEP_KEY = "curstep";

    // 替换字符
    public static final String REPLACE_STR = "0";

    // 过期时间为1天
    public final static int CODE_SEQUENCE_EXPIRE = 60 * 60 * 24;
}
